package com.hl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.order.mapper.ShopWithdrawMapper;
import com.hl.order.domain.ShopWithdraw;
import com.hl.order.service.IShopWithdrawService;

/**
 * 商家提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
@Service
public class ShopWithdrawServiceImpl implements IShopWithdrawService 
{
    @Autowired
    private ShopWithdrawMapper shopWithdrawMapper;

    /**
     * 查询商家提现记录
     * 
     * @param id 商家提现记录主键
     * @return 商家提现记录
     */
    @Override
    public ShopWithdraw selectShopWithdrawById(Long id)
    {
        return shopWithdrawMapper.selectShopWithdrawById(id);
    }

    /**
     * 查询商家提现记录列表
     * 
     * @param shopWithdraw 商家提现记录
     * @return 商家提现记录
     */
    @Override
    public List<ShopWithdraw> selectShopWithdrawList(ShopWithdraw shopWithdraw)
    {
        return shopWithdrawMapper.selectShopWithdrawList(shopWithdraw);
    }

    /**
     * 新增商家提现记录
     * 
     * @param shopWithdraw 商家提现记录
     * @return 结果
     */
    @Override
    public int insertShopWithdraw(ShopWithdraw shopWithdraw)
    {
        return shopWithdrawMapper.insertShopWithdraw(shopWithdraw);
    }

    /**
     * 修改商家提现记录
     * 
     * @param shopWithdraw 商家提现记录
     * @return 结果
     */
    @Override
    public int updateShopWithdraw(ShopWithdraw shopWithdraw)
    {
        return shopWithdrawMapper.updateShopWithdraw(shopWithdraw);
    }

    /**
     * 批量删除商家提现记录
     * 
     * @param ids 需要删除的商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteShopWithdrawByIds(Long[] ids)
    {
        return shopWithdrawMapper.deleteShopWithdrawByIds(ids);
    }

    /**
     * 删除商家提现记录信息
     * 
     * @param id 商家提现记录主键
     * @return 结果
     */
    @Override
    public int deleteShopWithdrawById(Long id)
    {
        return shopWithdrawMapper.deleteShopWithdrawById(id);
    }
}
